﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="ControlDieuChinhDonHangDaIn.ascx.cs" Inherits="UserControl_ControlDieuChinhDonHangDaIn" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<%@ Register Src="uscMsgBox.ascx" TagName="uscMsgBox" TagPrefix="uc1" %>
<script type="text/javascript">
    function pageLoad() {
        $("#<%= btAdd.ClientID %>").click(function () {
            $.blockUI({ css: {
                border: 'none',
                padding: '15px',
                backgroundColor: '#000',
                '-webkit-border-radius': '10px',
                '-moz-border-radius': '10px',
                opacity: .5,
                color: '#fff'
            }
            });
    });

    Sys.WebForms.PageRequestManager.getInstance().add_endRequest(EndRequestHandler);
    function EndRequestHandler(sender, args) {
        $.unblockUI();
    }

        }
 </script>

<asp:UpdatePanel ID="UpdatePanel1" runat="server">
    <ContentTemplate>
     <div class="direct_container_right_titletop">
                     Điều chỉnh đơn hàng đã in
                </div>
                 <hr />
              
               <!-- Content main-->
                <div class="direct_container_main">
                    <div class="direct_container_form_right">
                        <table border="0" width="100%">
                            <tr>
                                <td align="right" width="10%"><p class="direct_label">Chi nhánh</p></td>
                                <td align="left" width="90%">
                                     <asp:DropDownList ID="ddlChiNhanh" runat="server">
                                        </asp:DropDownList>
                                         <asp:Button ID="btAdd" runat="server" CssClass="direct_bt_search" Text="Thêm" 
                                        onclick="btAdd_Click" />
                                </td>
                            </tr>

                            <tr>
                               <td colspan="2">
                              <asp:GridView ID="grvOrderPrinted" runat="server" AllowPaging="true" AutoGenerateColumns="False"  PageSize="10"
                                                        DataKeyNames="tranno" EnableModelValidation="True" OnPageIndexChanging="grvOrderPrinted_PageIndexChanging" 
                                                        onrowcommand="grvOrderPrinted_RowCommand">
                                                        <Columns>
                                                            <asp:TemplateField HeaderText="Stt">
                                                                <HeaderTemplate>
                                                                    STT
                                                                </HeaderTemplate>
                                                                <ItemTemplate>
                                                                    <%# Container.DataItemIndex + 1 %>
                                                                </ItemTemplate>
                                                                <HeaderStyle HorizontalAlign="Left" Width="50px" />
                                                                <ItemStyle Height="40px" HorizontalAlign="Left" Width="50px" />
                                                            </asp:TemplateField>
                                                            <asp:TemplateField HeaderText="Số HĐ">
                                                                <HeaderTemplate>
                                                                    Số HĐ
                                                                </HeaderTemplate>
                                                                <ItemTemplate>
                                                                 
                                                                    <asp:Label ID="lblSoHD" runat="server" Text='<%# Eval("tranno")%>'></asp:Label>  
                                                                </ItemTemplate>
                                                                <HeaderStyle HorizontalAlign="Left" Width="50px" />
                                                                <ItemStyle Height="40px" HorizontalAlign="Left" Width="50px" />
                                                            </asp:TemplateField>
                                                            <asp:TemplateField HeaderText="Nhà phân phối">
                                                                <HeaderTemplate>
                                                                    Nhà phân phối
                                                                </HeaderTemplate>
                                                                <ItemTemplate>
                                                                    <%# Eval("TVV")%>
                                                                </ItemTemplate>
                                                                <HeaderStyle HorizontalAlign="Left" Width="50px" />
                                                                <ItemStyle Height="40px" HorizontalAlign="Left" Width="50px" />
                                                            </asp:TemplateField>
                                                             <asp:TemplateField>
                                                                 <ItemTemplate>
                                                                    <asp:ImageButton ID="imgBtnChon" runat="server" CausesValidation="False" 
                                                                    CommandName="chon" Height="20px" ImageUrl="~/Images/check.png" />
                                                                </ItemTemplate>
                                                                <ControlStyle BackColor="White" BorderColor="White" />
                                                                <FooterStyle BackColor="White" BorderColor="White" />
                                                                <HeaderStyle BackColor="White" BorderColor="White" />
                                                                <ItemStyle BackColor="White" BorderColor="White" />
                                                            </asp:TemplateField>
                                                        </Columns>
                                                    </asp:GridView>
                               
                               </td>
                            </tr>
                        </table>
                    </div>
                </div>
                <!-- EndContent main-->
    </ContentTemplate>
</asp:UpdatePanel>
<uc1:uscMsgBox ID="uscMsgBox1" runat="server" />
